package com.faxsun.web.utils;

import java.util.HashMap;
/**
 * 
 * @author zhilin
 * @since  Jun 18, 2015
 */
public class Response extends HashMap<String, Object> {
	/**
	 * 
	 */
	private static final long serialVersionUID = -4458661181815670757L;
	private static final String MSG = "message";
	private static final String CODE = "code";
	private static final String DATA = "data";

	private Response(String code, String message, Object data) {
		super.put(CODE, code);
		super.put(MSG, message);
		super.put(DATA, data);
	}

	public static Response build(String message, String code, Object data) {
		return new Response(code, message, data);
	}

}
